﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FilesArranger
{
	public partial class jsTreeDemo_Files : TreePageBase
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected override void LoadChildren()
		{
			Response.ContentType = "application/json";
			Response.Write("[{\"data\" : \"A node\", \"children\" :[ \"Child 1\", \"Child 2\" ]},{\"attr\":{\"id\":\"li.node.id\"},\"data\" : { \"title\" : \"Long format demo\",\"attr\" : { \"href\" : \"#\" } } }");
			for (int i = 0; i < 98; i++)
			{
				Response.Write(",{\"data\" : \"A node\", \"children\" :[ \"Child 1\", \"Child 2\" ]},{\"attr\":{\"id\":\"li.node.id\"},\"data\" : { \"title\" : \"Long format demo\",\"attr\" : { \"href\" : \"#\" } } }");

			}
			Response.Write(",{\"data\" : \"A node\", \"children\" :[ \"Child 1\", \"Child 2\" ]},{\"attr\":{\"id\":\"li.node.id\"},\"data\" : { \"title\" : \"Long format demo\",\"attr\" : { \"href\" : \"#\" } } }]");
			Response.End();
		}

		protected override void DeleteChildNode()
		{
			throw new NotImplementedException();
		}

		protected override void CreateChildNode()
		{
			throw new NotImplementedException();
		}

		protected override void MoveChildNode()
		{
			throw new NotImplementedException();
		}

		protected override void Refresh()
		{
			throw new NotImplementedException();
		}
	}
}